Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      10 Ways Node.js Development Boosts AI & Real-Time Data (2025-2026 Edition)

      August 18, 2025

      Looking to Outsource React.js Development? Here’s What Top Agencies Are Doing Right

      August 18, 2025

      Beyond The Hype: What AI Can Really Do For Product Design

      August 18, 2025

      BrowserStack launches Chrome extension that bundles 10+ manual web testing tools

      August 18, 2025

      How much RAM does your Linux PC really need in 2025?

      August 19, 2025

      Have solar at home? Supercharge that investment with this other crucial component

      August 19, 2025

      I replaced my MacBook charger with this compact wall unit – and wish I’d done it sooner

      August 19, 2025

      5 reasons to switch to an immutable Linux distro today – and which to try first

      August 19, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Sentry Adds Logs Support for Laravel Apps

      August 19, 2025
      Recent

      Sentry Adds Logs Support for Laravel Apps

      August 19, 2025

      Efficient Context Management with Laravel’s Remember Functions

      August 19, 2025

      Laravel Devtoolbox: Your Swiss Army Knife Artisan CLI

      August 19, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      From plateau predictions to buggy rollouts — Bill Gates’ GPT-5 skepticism looks strangely accurate

      August 18, 2025
      Recent

      From plateau predictions to buggy rollouts — Bill Gates’ GPT-5 skepticism looks strangely accurate

      August 18, 2025

      We gave OpenAI’s open-source AI a kid’s test — here’s what happened

      August 18, 2025

      With GTA 6, next-gen exclusives, and a console comeback on the horizon, Xbox risks sitting on the sidelines — here’s why

      August 18, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»News & Updates»CVE-2025-53367: An exploitable out-of-bounds write in DjVuLibre

    CVE-2025-53367: An exploitable out-of-bounds write in DjVuLibre

    July 3, 2025

    DjVuLibre version 3.5.29 was released today. It fixes CVE-2025-53367 (GHSL-2025-055), an out-of-bounds (OOB) write in the MMRDecoder::scanruns method. The vulnerability could be exploited to gain code execution on a Linux Desktop system when the user tries to open a crafted document.

    DjVu is a document file format that can be used for similar purposes to PDF. It is supported by Evince and Papers, the default document viewers on many Linux distributions. In fact, even when a DjVu file is given a filename with a .pdf extension, Evince/Papers will automatically detect that it is a DjVu document and run DjVuLibre to decode it.

    Antonio found this vulnerability while researching the Evince document reader. He found the bug with fuzzing.

    Kev has developed a proof of concept exploit for the vulnerability, as demoed in this video.

    The POC works on a fully up-to-date Ubuntu 25.04 (x86_64) with all the standard security protections enabled. To explain what’s happening in the video:

    1. Kev clicks on a malicious DjVu document in his ~/Downloads directory.
    2. The file is named poc.pdf, but it’s actually in DjVu format.
    3. The default document viewer (/usr/bin/papers) loads the document, detects that it’s in DjVu format, and uses DjVuLibre to decode it.
    4. The file exploits the OOB write vulnerability and triggers a call to system("google-chrome https://www.youtube.com/…").
    5. Rick Astley appears.

    Although the POC is able to bypass ASLR, it’s somewhat unreliable: it’ll work 10 times in a row and then suddenly stop working for several minutes. But this is only a first version, and we believe it’s possible to create an exploit that’s significantly more reliable.

    You may be wondering: why Astley, and not a calculator? That’s because /usr/bin/papers runs under an AppArmor profile. The profile prohibits you from starting an arbitrary process but makes an exception for google-chrome. So it was easier to play a YouTube video than pop a calc. But the AppArmor profile is not particularly restrictive. For example, it lets you write arbitrary files to the user’s home directory, except for the really obvious one like ~/.bashrc. So it wouldn’t prevent a determined attacker from gaining code execution.

    Vulnerability Details

    The MMRDecoder::scanruns method is affected by an OOB-write vulnerability, because it doesn’t check that the xr pointer stays within the bounds of the allocated buffer.

    During the decoding process, run-length encoded data is written into two buffers: lineruns and prevruns:

    //libdjvu/MMRDecoder.h
    class DJVUAPI MMRDecoder : public GPEnabled
    {
    ...
    public:
    
      unsigned short *lineruns;
    ...
      unsigned short *prevruns;
    ...
    }

    The variables named pr and xr point to the current locations in those buffers. 

    scanruns does not check that those pointers remain within the bounds of the allocated buffers.

    //libdjvu/MMRDecoder.cpp
    const unsigned short *
    MMRDecoder::scanruns(const unsigned short **endptr)
    {
    ...
      // Swap run buffers
      unsigned short *pr = lineruns;
      unsigned short *xr = prevruns;
      prevruns = pr;
      lineruns = xr;
    ...
      for(a0=0,rle=0,b1=*pr++;a0 < width;)
        {
         ...
                *xr = rle; xr++; rle = 0;
         ...
                *xr = rle; xr++; rle = 0;
     ...
              *xr = inc+rle-a0;
              xr++;
    }

    This can lead to writes beyond the allocated memory, resulting in a heap corruption condition. An out-of-bounds read with pr is also possible for the same reason.

    We will publish the source code of our proof of concept exploit in a couple of weeks’ time in the GitHub Security Lab repository.

    Acknowledgements

    We would like to thank Léon Bottou and Bill Riemers for responding incredibly quickly and releasing a fix less than two days after we first contacted them!

    Timeline

    • 2025-07-01: Reported via email to the authors: Léon Bottou, Bill Riemers, Yann LeCun.
    • 2025-07-01: Responses received from Bill Riemers and Léon Bottou.
    • 2025-07-02: Fix commit added by Léon Bottou: https://sourceforge.net/p/djvu/djvulibre-git/ci/33f645196593d70bd5e37f55b63886c31c82c3da/
    • 2025-07-03: DjVuLibre version 3.5.29 released: https://sourceforge.net/p/djvu/www-git/ci/9748b43794440aff40bae066132aa5c22e7fd6a3/ 

    The post CVE-2025-53367: An exploitable out-of-bounds write in DjVuLibre appeared first on The GitHub Blog.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous Article5 Best Free and Open Source Font Managers
    Next Article fstl-e – fast stl viewer

    Related Posts

    News & Updates

    How much RAM does your Linux PC really need in 2025?

    August 19, 2025
    News & Updates

    Have solar at home? Supercharge that investment with this other crucial component

    August 19, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-6288 – PHPGurukul Bus Pass Management System Cross Site Scripting (XSS)

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4193 – iSourcecode Restaurant Management System SQL Injection

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4341 – D-Link DIR-880L Command Injection Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Kibi is a tiny text editor

    Linux

    Highlights

    Security

    ServiceNow Flaw CVE-2025-3648 Could Lead to Data Exposure via Misconfigured ACLs

    July 10, 2025

    ServiceNow Flaw CVE-2025-3648 Could Lead to Data Exposure via Misconfigured ACLs

    A high-severity security flaw has been disclosed in ServiceNow’s platform that, if successfully exploited, could result in data exposure and exfiltration.
    The vulnerability, tracked as CVE-2025-3648 ( …
    Read more

    Published Date:
    Jul 10, 2025 (15 hours, 48 minutes ago)

    Vulnerabilities has been mentioned in this article.

    Exploit CVE-2019-9978: Remote Code Execution in Social Warfare WordPress Plugin (<= 3.5.2)

    June 3, 2025

    Salesforce OmniStudio Flaws Expose Encrypted Data

    June 10, 2025

    VideoDubber’s YouTube Channel Finder

    May 22, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.