Commit 063698a
Add YARA rule for CVE-2025-48384 (git submodule CR injection) (#1540)
* Add YARA rule for CVE-2025-48384 (git submodule CR injection)
Detects a .gitmodules submodule path or url value that carries a smuggled
carriage return, the exploitation primitive for CVE-2025-48384. git strips a
trailing CR when reading a config value but does not quote it when writing, so
a submodule whose path ends in CR is checked out to a different location than
the one validated; paired with a symlink into .git/hooks this runs a
post-checkout hook during a recursive clone.
Placed under rules/impact/exploit/ alongside the existing CVE exploit rules.
The rule matches an embedded CR mid-value on its own (zero false positives on
benign LF or CRLF files) and a trailing CR only when the file also has bare-LF
line endings, the on-disk fingerprint of a CR injected into an otherwise-LF
.gitmodules, so a uniformly CRLF Windows checkout does not match.
Refs: GHSA-vwqx-4fm8-6qc9
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
* small rule tweaks
* add newline
---------
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
Co-authored-by: Evan Gibler <20933572+egibs@users.noreply.github.com>1 parent 306cb55 commit 063698a
1 file changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments