← Back to scan
File as GitHub Issue repo: systemd/systemd

Push this scan report to systemd/systemd

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

C Strcpy

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED107 [MINED107] Missing import: `string` used but not imported: The file uses `string.somethin… src/ukify/ukify.py:1207
CRIT MINED107 [MINED107] Missing import: `xml` used but not imported: The file uses `xml.something(...)… tools/update-dbus-docs.py:296
CRIT MINED107 [MINED107] Missing import: `xml` used but not imported: The file uses `xml.something(...)… tools/update-man-rules.py:24
CRIT MINED022 [MINED022] C Strcpy: strcpy/strcat dont bounds-check; use strncpy or snprintf. src/basic/path-util.h:116
CRIT MINED022 [MINED022] C Strcpy: strcpy/strcat dont bounds-check; use strncpy or snprintf. src/basic/ether-addr-util.c:106
CRIT MINED022 [MINED022] C Strcpy: strcpy/strcat dont bounds-check; use strncpy or snprintf. src/basic/capability-list.c:41
HIGH MINED106 [MINED106] Phantom test coverage: test_mtu: Test function `test_mtu` runs code but contai… test/test-network/systemd-networkd-test…:1728
HIGH MINED106 [MINED106] Phantom test coverage: test_glob: Test function `test_glob` runs code but cont… test/test-network/systemd-networkd-test…:1702
HIGH MINED106 [MINED106] Phantom test coverage: test_reload: Test function `test_reload` runs code but … test/test-network/systemd-networkd-test…:1679
HIGH MINED106 [MINED106] Phantom test coverage: test_up_down: Test function `test_up_down` runs code bu… test/test-network/systemd-networkd-test…:1665
HIGH MINED106 [MINED106] Phantom test coverage: test_altname: Test function `test_altname` runs code bu… test/test-network/systemd-networkd-test…:1578
HIGH MINED106 [MINED106] Phantom test coverage: test_catchall_config_coldplug: Test function `test_catc… test/networkd-test.py:1372
HIGH MINED106 [MINED106] Phantom test coverage: test_catchall_config: Test function `test_catchall_conf… test/networkd-test.py:1364
HIGH MINED106 [MINED106] Phantom test coverage: test_unmanaged_setting_coldplug: Test function `test_un… test/networkd-test.py:1358
HIGH MINED106 [MINED106] Phantom test coverage: test_unmanaged_setting: Test function `test_unmanaged_s… test/networkd-test.py:1352
HIGH MINED106 [MINED106] Phantom test coverage: test_inverted_matching: Test function `test_inverted_ma… test/networkd-test.py:1299
HIGH MINED106 [MINED106] Phantom test coverage: test_basic_matching: Test function `test_basic_matching… test/networkd-test.py:1284
HIGH MINED106 [MINED106] Phantom test coverage: test_search_domains: Test function `test_search_domains… test/networkd-test.py:1143
HIGH MINED106 [MINED106] Phantom test coverage: test_hotplug_dhcp_ip6: Test function `test_hotplug_dhcp… test/networkd-test.py:600
HIGH MINED106 [MINED106] Phantom test coverage: test_hotplug_dhcp_ip4: Test function `test_hotplug_dhcp… test/networkd-test.py:596
HIGH MINED106 [MINED106] Phantom test coverage: test_coldplug_dhcp_ip6: Test function `test_coldplug_dh… test/networkd-test.py:593
HIGH MINED106 [MINED106] Phantom test coverage: test_coldplug_dhcp_ip4_only_no_ra: Test function `test_… test/networkd-test.py:589
HIGH MINED106 [MINED106] Phantom test coverage: test_coldplug_dhcp_ip4_only: Test function `test_coldpl… test/networkd-test.py:585
HIGH MINED106 [MINED106] Phantom test coverage: test_coldplug_dhcp_yes_ip4_no_ra: Test function `test_c… test/networkd-test.py:581
HIGH MINED106 [MINED106] Phantom test coverage: test_coldplug_dhcp_yes_ip4: Test function `test_coldplu… test/networkd-test.py:577
HIGH MINED106 [MINED106] Phantom test coverage: test_bridge_init: Test function `test_bridge_init` runs… test/networkd-test.py:318
HIGH MINED108 [MINED108] `self._num` used but never assigned in __init__: Method `subst` of class `MySD… test/sd-script.py:144
HIGH MINED108 [MINED108] `self.minor` used but never assigned in __init__: Method `subst` of class `MyS… test/sd-script.py:143
HIGH MINED108 [MINED108] `self.namestr` used but never assigned in __init__: Method `subst` of class `M… test/sd-script.py:142
HIGH MINED108 [MINED108] `self.major` used but never assigned in __init__: Method `subst` of class `MyS… test/sd-script.py:141
HIGH MINED108 [MINED108] `self._num` used but never assigned in __init__: Method `subst` of class `MySD… test/sd-script.py:140
HIGH MINED108 [MINED108] `self._get_dev_t` used but never assigned in __init__: Method `longstr` of cla… test/sd-script.py:134
HIGH MINED108 [MINED108] `self.namestr` used but never assigned in __init__: Method `longstr` of class … test/sd-script.py:134
HIGH MINED108 [MINED108] `self.devstr` used but never assigned in __init__: Method `longstr` of class `… test/sd-script.py:134
HIGH MINED108 [MINED108] `self._get_name` used but never assigned in __init__: Method `namestr` of clas… test/sd-script.py:131
HIGH MINED108 [MINED108] `self._get_minor` used but never assigned in __init__: Method `devstr` of clas… test/sd-script.py:128
HIGH MINED108 [MINED108] `self._get_major` used but never assigned in __init__: Method `devstr` of clas… test/sd-script.py:128
HIGH MINED108 [MINED108] `self._get_minor` used but never assigned in __init__: Method `minor` of class… test/sd-script.py:125
HIGH MINED108 [MINED108] `self._get_major` used but never assigned in __init__: Method `major` of class… test/sd-script.py:122
HIGH MINED108 [MINED108] `self._get_name` used but never assigned in __init__: Method `__str__` of clas… test/sd-script.py:119
HIGH MINED108 [MINED108] `self.devstr` used but never assigned in __init__: Method `__str__` of class `… test/sd-script.py:119
HIGH MINED108 [MINED108] `self.check_link_remove` used but never assigned in __init__: Method `check_re… test/test-udev.py:148
HIGH MINED108 [MINED108] `self.get_devnode` used but never assigned in __init__: Method `check_remove` … test/test-udev.py:144
HIGH MINED108 [MINED108] `self.check_link_nonexistent` used but never assigned in __init__: Method `che… test/test-udev.py:136
HIGH MINED108 [MINED108] `self.check_link_add` used but never assigned in __init__: Method `check_add` … test/test-udev.py:133
HIGH MINED108 [MINED108] `self.check_major_minor` used but never assigned in __init__: Method `check_ad… test/test-udev.py:130
HIGH MINED108 [MINED108] `self.check_permissions` used but never assigned in __init__: Method `check_ad… test/test-udev.py:129
HIGH MINED108 [MINED108] `self.get_devnode` used but never assigned in __init__: Method `check_add` of … test/test-udev.py:126
HIGH MINED106 [MINED106] Phantom test coverage: test_base64: Test function `test_base64` runs code but … test/test-systemd-tmpfiles.py:227
HIGH MINED106 [MINED106] Phantom test coverage: test_hard_cleanup: Test function `test_hard_cleanup` ru… test/test-systemd-tmpfiles.py:212
HIGH MINED106 [MINED106] Phantom test coverage: test_valid_specifiers: Test function `test_valid_specif… test/test-systemd-tmpfiles.py:106
HIGH MINED106 [MINED106] Phantom test coverage: test_uninitialized_t: Test function `test_uninitialized… test/test-systemd-tmpfiles.py:82
HIGH MINED106 [MINED106] Phantom test coverage: test_invalids: Test function `test_invalids` runs code … test/test-systemd-tmpfiles.py:51
HIGH MINED108 [MINED108] `self.resolve_filename` used but never assigned in __init__: Method `resolve` … tools/xml_helper.py:14
HIGH MINED108 [MINED108] `self.resolve_filename` used but never assigned in __init__: Method `resolve` … tools/xml_helper.py:12
HIGH MINED108 [MINED108] `self.resolve_filename` used but never assigned in __init__: Method `resolve` … tools/xml_helper.py:10
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/boot/url-discovery.h:6
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/boot/url-discovery.c:8
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/boot/export-vars.c:24
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). src/integritysetup/integrity-util.c:18
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). src/fundamental/sha1.c:65
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). src/analyze/analyze-pcrs.c:19
HIGH DKR014 Dockerfile copies the entire context without .dockerignore .clusterfuzzlite/Dockerfile:3
HIGH MINED115 [MINED115] Action `google/clusterfuzzlite/actions/run_fuzzers` pinned to mutable ref `@v1… .github/workflows/cflite-pr.yml:34
HIGH MINED115 [MINED115] Action `google/clusterfuzzlite/actions/build_fuzzers` pinned to mutable ref `@… .github/workflows/cflite-pr.yml:28
HIGH MINED115 [MINED115] Action `google/oss-fuzz/infra/cifuzz/actions/run_fuzzers` pinned to mutable re… .github/workflows/cifuzz.yml:55
HIGH MINED115 [MINED115] Action `google/oss-fuzz/infra/cifuzz/actions/build_fuzzers` pinned to mutable … .github/workflows/cifuzz.yml:44
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v7`: `uses: actions/u… .github/workflows/mkosi.yml:326
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v7`: `uses: actions/u… .github/workflows/coverage.yml:136
HIGH MINED118 [MINED118] Dockerfile FROM `gcr.io/oss-fuzz-base/base-builder:v1` not pinned by digest: `… .clusterfuzzlite/Dockerfile:1
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… src/shared/generate-dns_type-gperf.py:21
MED MINED109 [MINED109] Mutable default argument in `test_content` (dict): `def test_content(... = []/… test/test-systemd-tmpfiles.py:94
MED MINED109 [MINED109] Mutable default argument in `test_line` (dict): `def test_line(... = []/{}/set… test/test-systemd-tmpfiles.py:38
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … src/core/service.h:42
MED SEC031 [SEC031] Catastrophic Backtracking Regex (ReDoS): Regex contains nested quantifiers like … src/core/generate-bpf-delegate-configs.…:70
MED SEC123 [SEC123] Production stack trace / debug output exposed: Debug mode left on in production … src/login/pam_systemd_loadkey.c:42
MED SEC123 [SEC123] Production stack trace / debug output exposed: Debug mode left on in production … .github/workflows/build-test.sh:19
MED COMP001 [COMP001] High cognitive complexity: Function `MakeRelativePathsInFlagsAbsolute` has cogn… .ycm_extra_conf.py:155
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DKR001 Docker final stage has no non-root USER .clusterfuzzlite/Dockerfile:1
MED AIC004 Suspicious implementation file appears unreferenced man/inotify-watch-tmp.c:1
MED AIC004 Suspicious implementation file appears unreferenced hwdb.d/acpi-update.py:1
LOW COMP001 [COMP001] High cognitive complexity: Function `TraverseByDepth` has cognitive complexity … .ycm_extra_conf.py:88
LOW COMP001 [COMP001] High cognitive complexity: Function `GetCompilationInfoForFile` has cognitive c… .ycm_extra_conf.py:197
LOW AIC003 Duplicated implementation block across source files src/cgtop/cgtop.c:506
LOW AIC003 Duplicated implementation block across source files src/bootctl/bootctl.c:332
LOW AIC003 Duplicated implementation block across source files src/bootctl/bootctl-unlink.c:429
LOW AIC003 Duplicated implementation block across source files src/bless-boot/boot-check-no-failures.c:21
LOW AIC003 Duplicated implementation block across source files src/bless-boot/boot-check-no-failures.c:20
LOW AIC003 Duplicated implementation block across source files src/battery-check/battery-check.c:41
LOW AIC003 Duplicated implementation block across source files src/analyze/analyze-unit-shell.c:9
LOW AIC002 Source file name looks like an AI patch artifact man/inotify-watch-tmp.c:1
LOW AIC002 Source file name looks like an AI patch artifact hwdb.d/acpi-update.py:1
INFO MINED069 [MINED069] Debug True Prod: Django/Flask DEBUG=True or app.debug=True in non-test files. src/login/pam_systemd_loadkey.c:42
INFO MINED053 [MINED053] Placeholder Default Username: [email protected] / [email protected] / admin/admin… src/basic/unit-name.h:11
INFO MINED075 [MINED075] C Malloc No Check: malloc/calloc/realloc return value used without checking fo… src/basic/mempool.c:49
INFO MINED075 [MINED075] C Malloc No Check: malloc/calloc/realloc return value used without checking fo… src/basic/memory-util.c:27
INFO MINED075 [MINED075] C Malloc No Check: malloc/calloc/realloc return value used without checking fo… src/basic/alloc-util.c:12
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. src/journal-remote/log-generator.py:37
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. man/check-os-release.py:12
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… man/sd_bus_service_reconnect.c:14
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… .semaphore/semaphore-runner.sh:43
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… .github/workflows/build-test.sh:134
Reset to top 5 103 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `systemd/systemd`

**Score: 76/100 (B)**  ·  103 findings  ·  scanned 2026-06-05 17:13 UTC  ·  1,158,214 LOC

| Severity | Count |
|---|---|
| CRITICAL | 6 |
| HIGH | 65 |
| MEDIUM | 11 |
| LOW | 11 |

📊 [Full filterable report](https://repobility.com/scan/b700e0d3-537f-44f0-83a9-d34938a60700/)  ·  ![scorecard](https://repobility.com/scan/b700e0d3-537f-44f0-83a9-d34938a60700/report.png?v=1780679587-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `string` used but not imported
   `src/ukify/ukify.py:1207` · ✓ Repobility
2. **CRITICAL** `MINED107` — Missing import: `xml` used but not imported
   `tools/update-dbus-docs.py:296` · ✓ Repobility
3. **CRITICAL** `MINED107` — Missing import: `xml` used but not imported
   `tools/update-man-rules.py:24` · ✓ Repobility
4. **CRITICAL** `MINED022` — C Strcpy
   `src/basic/path-util.h:116` · CWE-120 · ✓ Repobility
5. **CRITICAL** `MINED022` — C Strcpy
   `src/basic/ether-addr-util.c:106` · CWE-120 · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/b700e0d3-537f-44f0-83a9-d34938a60700/_
Megaproject â high spam risk
Could not determine 'systemd/systemd' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
57/109 findings (52%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.