Advisory

GHSA-4qw4-jpp4-8gvp

Also known as: None

Summary

Unbounded resource exhaustion in cmark-gfm autolink extension may lead to denial of service

Details

Impact

CommonMarker uses cmark-gfm for rendering Github Flavored Markdown. A polynomial time complexity issue in cmark-gfm's autolink extension may lead to unbounded resource exhaustion and subsequent denial of service.

Patches

This vulnerability has been patched in the following CommonMarker release:

  • v0.23.6

Workarounds

Disable use of the autolink extension.

References

https://github.com/gjtorikian/commonmarker/pull/190
https://github.com/github/cmark-gfm/security/advisories/GHSA-cgh3-p57x-9q7q
https://en.wikipedia.org/wiki/Time_complexity

For more information
If you have any questions or comments about this advisory:

Acknowledgements

We would like to thank Legit Security for reporting this vulnerability.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-09-21 18:18 UTC
Modified
2024-12-02 05:40 UTC

Affected packages and fixes

commonmarker

RubyGems · All systems

Affected

  • introduced 0, fixed 0.23.6 (ecosystem)

Fixed versions

0.23.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences