-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Set CWE-134 from 9.3 to 7.3 CVSS score for memory safe languages (#2) #19738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Sync up to score given to javascript/ruby
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR lowers the @security-severity
for CWE-134 (uncontrolled/tainted format string) queries from 9.3 to 7.3 in memory-safe languages and adds corresponding change notes.
- Updated
@security-severity
from 9.3 to 7.3 in Swift, Java, and C# QL queries. - Added change-note markdown files documenting the severity adjustment.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
swift/ql/src/queries/Security/CWE-134/UncontrolledFormatString.ql | Updated @security-severity from 9.3 to 7.3 |
swift/ql/src/change-notes/2025-06-06-reduce-CWE-134-for-memory-safe-languages.md | Added change note for Swift severity adjustment |
java/ql/src/Security/CWE/CWE-134/ExternallyControlledFormatString.ql | Updated @security-severity from 9.3 to 7.3 |
java/ql/src/change-notes/2025-06-06-reduce-CWE-134-for-memory-safe-languages.md | Added change note for Java severity adjustment |
csharp/ql/src/Security Features/CWE-134/UncontrolledFormatString.ql | Updated @security-severity from 9.3 to 7.3 |
csharp/ql/src/change-notes/2025-06-06-reduce-CWE-134-for-memory-safe-languages.md | Added change note for C# severity adjustment |
Comments suppressed due to low confidence (2)
csharp/ql/src/Security Features/CWE-134/UncontrolledFormatString.ql:1
- The directory name 'Security Features' is inconsistent with other languages’ 'Security/CWE-134' structure; consider renaming to maintain consistency across the codebase.
csharp/ql/src/Security Features/CWE-134/UncontrolledFormatString.ql
java/ql/src/change-notes/2025-06-06-reduce-CWE-134-for-memory-safe-languages.md:4
- Ensure that any existing QL tests or validation suites that assert on the previous @security-severity value are updated to expect the new severity of 7.3, to avoid test failures or untested behavior.
* Adjusts the `@security-severity` from 9.3 to 7.3 for `java/tainted-format-string` to align `CWE-134` severity for memory safe languages to better reflect their impact.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This is a copy of #19530, hopefully with line endings fixed so that CI will pass.