r/devsecops • • 2d ago

Our own code flipped more "not reachable" CVEs than new exploits did

I've spent quite some time going back over every High and Critical dependancy CVE we've marked not reachable and deffered since May. Our CTO saw one of those " a quarter of all CVEs ever were published this year" charts and now wants everything patched in 30 days, no exceptions. Guess who got volunteered to say whether that's realistic

Mostly a script. Pulled the KEV json, did a pretty dump search of GitHub and Exploit-DB for anything newer than the date we deferred it, then a fresh reachability run on main.

deferred as not reachable412
public PoC since23
added to KEV sinceh3
of those 26, reachable now0
reachable now, no PoC or KEV11

I fully expected the PoC and KEV ones to be the problem since that's all anybody talks about right now. Not one of them is reachable. Seven are from a PDF export feature that calls straight into the vulnerable parser. And our 90 day review wouldn't have looked at them again for months.

What I want to pitch instead is rerunning reachability on every merge, rechecking within 48h when something hits KEV or gets a PoC, auto-merging green patch bumps and putting an expiry date on the rest.

Is this reasonable to take to the CTO?

8 Upvotes

21 comments sorted by

7

u/Silent-Suspect1062 2d ago

It depends how you define reachabililty. That's the key metric that is " load bearing "đŸ€©. If you are confident in this, then definitely.

2

u/Apart_Excitement9242 1d ago

dependency injection frameworks tend to break static reachability checks pretty easily if you arent doing runtime tracing too

1

u/Temporary-Sector-298 1d ago

What do you use for the runtime part? We're mostly spring and everytime we tried tracing it never made it out of staging

2

u/danekan 2d ago edited 2d ago

The official Kev list isn’t well maintained though in the sense that it s an end all and be all. If something makes the lost it becomes a non negotiable item to fix but the keg itself is only a small baseline of exploitable cves. It lags being listed there too because not only does it need to be known exploitable it needs to have an actual established remediation path too. If you browse the actual kev list the vast majority of items there are actually desktop endpoint products and that’s because those have more attention in terms of consistent installed user base numbers. Most cves with a proof of concept never make the KEV. 

How are you defining reachability or what tool is doing that? For me I balk at this if it’s in compiled code libraries too. Attacks happen in layers almost always and you can’t know that someone won’t invite that vuln python lib via command line, Claude gives me these one liners all day long. 

My other battle cray is publicness is not about network exposure but rather about its actual inputs and outputs. A pdf backend service that produces a pdf based on input from a public web service is a perfect example of that. (My real life nasties in this category have centered around backend services using imagemagick). Log4j is another classic example there. 

1

u/Temporary-Sector-298 1d ago

Just the reachability flag in our SCA tool, function level and static. It won't see a script shelling out to some lib, no. And the PDF export renders HTML templates customer upload, it's behind login and everyone treated it as internal

1

u/danekan 1d ago

So your pdf service takes html templates as input from a customer and you still think it’s only internally exposed?  Templated uploads would be worse than even structured input rendering to pdf. 

1

u/Alternative-Law4626 2d ago

The problem is you are pitching a solution for last year. Last year this would have been a perfectly reasonable balanced approach to dealing with your massive tech debt.

However, just watched CrowdStrike’s CEO talking about the current situation with AI in the mix on the behalf of the attackers. He said they had seen AI chaining together up to 100 “low” vulnerabilities to gain access through your crunchy outer shell and pivot into your internal LAN. Further, they had recently assisted in the take down of a C2 server actively operating 200 AI based attacks simultaneously.

The days of ignoring lows and thinking that something is “unreachable” are over. The “experts” have been preaching about moving to an “assumed breach” posture for years. That needs to be the baseline after July 2026.

1

u/Temporary-Sector-298 1d ago

There's two of us .412 bumps in 30 days isn't happenning and the 7 PDF ones ones would just sit somewhere in the middle jus sit somewhere in the middle of that pile

1

u/Alternative-Law4626 1d ago

Been there, luckily that was over 10 years ago. 8 years ago, we had an “incident” that was scary enough to get c-suite attention and we tripled our headcount in 18 months.

1

u/frankentriple 1d ago

Unreachable just means its going to be used for lateral access.

1

u/OnoniewuGehovany99 2d ago

Keep deps current with Renovate and decent tests and none of this archaeology is needed.26 got a PoC or a KEV entry and you only know they are safe because you went back and looked. Next time leadership panics you're doing it all over again

1

u/Temporary-Sector-298 1d ago

Well , we tried renovate on one service last month with 38 PRs, 6 didn't even build , mostly peer dep stuff. Tests caught one real regression in the rest. Its fine auto merging the boring ones but it's not going to clear the backlog

1

u/OnoniewuGehovany99 5h ago

38 at once would make me hesitant with auto-merge too. it would be nice if updates came in a few at a time instead of all together

3

u/Impressive-Craft1926 2d ago edited 9h ago

Rerunning on every merge is cheaper than it sounds.On checkmarx the reachability check is jus part of the normal SCA scan , didn't have to add a job. We scan every merge to main and a small script diffs the results, anything going Not Detected yo Path Found pings the team that owns the repo. Dynamic imports still slip past ,the plain new-call kind don't

1

u/Jan_Stepan 1d ago

What happens when the scan finds something and the team gets pinged?

1

u/Impressive-Craft1926 22h ago

they get a jira ticket with the path. usually its just a version bump, done same day . If they can't bump it they to put a reoson on it and that expores after 30 days

2

u/PutridBasket9039 2d ago

PDF export again.

2

u/Tagred_Bicanin 2d ago

Spring service with snakeyaml, marked not reachable , deferred and forgotten . Months later, a dev on the payments team copied a test helper that loads fixture YAML into src/main because they wanted the same loader for feature flag config. The verdict was right the day we deferred it and wrong after one commit

Thankfully, the red team found it first. Now any PR that moves code from that from src/test to src/main gets a security label. Crude but it's caught two more

1

u/Ok_Success9084 2d ago

So your script basically proved the CTO's panic chart is a nothingburger for your actual attack surface, love that.

1

u/babablahblah_ 36m ago

The 11 vs 0 split is interesting. "Not reachable" is a fact about your code on the day you checked, not about the CVE itself.

Who gets the ping when a merge flips one? If it goes to security, they have to work out a change they didn't write. If it goes to the team that merged it, they may not know the CVE was ever deferred.

Disclosure: I'm building something that checks whether code uses a risky dependency, so I'm biased towards rechecking on every merge.