AWS Builder Center

How I verify a CVE claim before writing a fix PR

A CVE report is a claim, not a fact. I check the advisory, reproduce the issue locally, and check the deployed default before I write any fix.

Full-stack Developer & Security Researcher
Most CVE reports I see are right about the code and wrong about the impact. I verify before I write a fix. This is the order I use.

1. Read the advisory, not the summary

I read the full advisory and the linked patch or commit. I note the affected versions, the exact function, and the precondition. If the advisory does not name a version or a code path, I treat it as unconfirmed.

2. Reproduce it locally

I check out the affected version and write a small reproduction. I run it with the default config first. If I cannot trigger the issue, I do not write a fix. A fix for a bug I cannot reproduce is a guess.

3. Check the deployed default

A bug in code is not the same as a bug in use. I check the default config, the default flags, and the default IAM or network setup. If the vulnerable path is off by default, the fix still matters, but the severity is lower. I write that down in the PR.

4. Write the fix, then re-run the reproduction

The fix should be small. I change the one path that is wrong. Then I re-run my reproduction and confirm it fails to trigger. I also run the existing tests. If the fix needs a config change too, I say so in the PR. I do not bundle a refactor with a security fix.

What I put in the PR

I link the advisory. I paste the reproduction steps. I state the default config I tested. I state what I did not test. A maintainer should be able to repeat my check in minutes. That is the whole point.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article