Skip to content

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

Merged
merged 5 commits into from
Jun 12, 2025

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Jun 11, 2025

This is a copy of #19530, hopefully with line endings fixed so that CI will pass.

@Copilot Copilot AI review requested due to automatic review settings June 11, 2025 20:51
@owen-mc owen-mc requested review from a team as code owners June 11, 2025 20:51
Copy link
Contributor

@Copilot Copilot AI left a 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.

@owen-mc owen-mc changed the title Java: Update precision java concatenated command line (#2) Java: Set CWE-134 from 9.3 to 7.3 CVSS score for memory safe languages (#2) Jun 11, 2025
Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@owen-mc owen-mc changed the title Java: Set CWE-134 from 9.3 to 7.3 CVSS score for memory safe languages (#2) Set CWE-134 from 9.3 to 7.3 CVSS score for memory safe languages (#2) Jun 12, 2025
@owen-mc owen-mc merged commit 538a5af into github:main Jun 12, 2025
35 checks passed
@owen-mc owen-mc deleted the pr/felickz/19530 branch June 12, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants