Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950192 (CVE-2025-1244) - app-editors/emacs: Shell injection vulnerability in man.el
Summary: app-editors/emacs: Shell injection vulnerability in man.el
Status: IN_PROGRESS
Alias: CVE-2025-1244
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL:
Whiteboard: A2 [stable]
Keywords:
Depends on: 950285
Blocks:
  Show dependency tree
 
Reported: 2025-02-23 17:52 UTC by Sam James
Modified: 2025-02-25 19:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-23 17:52:50 UTC
From the emacs-30.1 announcement [0]:
"""
Emacs 30.1 includes security fixes for a shell injection vulnerability
in man.el (CVE-2025-1244), and for arbitrary code execution with
flymake (CVE-2024-53920).  We recommend upgrading immediately.
"""

Of course, stabling 30.1 immediately isn't an option, so we need to figure out what fixes requiring backporting.

[0] https://lists.gnu.org/archive/html/emacs-devel/2025-02/msg00997.html
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-23 17:54:10 UTC
man.el: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=820f0793f0b46448928905552726c1f1b999062f
flymake: seems to be the same as bug 945164

Did we have a bug for the man.el thing before?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-23 17:57:32 UTC
flymake is indeed bug 945164. I'd typo'd the CVE number so didn't realise. Please use this bug for man.el (only). Sorry for the confusion.
Comment 3 Larry the Git Cow gentoo-dev 2025-02-24 05:49:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/emacs-patches.git/commit/?id=4c9563ef2b533375f3ea786ae76e1dca32eebb20

commit 4c9563ef2b533375f3ea786ae76e1dca32eebb20
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2025-02-24 05:21:55 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2025-02-24 05:21:55 +0000

    Fix man.el shell injection vulnerability
    
    Bug: https://bugs.gentoo.org/950192
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 emacs/26.3/14_all_man.patch | 26 ++++++++++++++++++++++++++
 emacs/27.2/15_all_man.patch | 26 ++++++++++++++++++++++++++
 emacs/28.2/18_all_man.patch | 26 ++++++++++++++++++++++++++
 emacs/29.4/06_all_man.patch | 26 ++++++++++++++++++++++++++
 4 files changed, 104 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2025-02-25 18:55:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/emacs-patches.git/commit/?id=459b8434e99767632f1a410e7d3c4536f6bad452

commit 459b8434e99767632f1a410e7d3c4536f6bad452
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2025-02-24 05:21:55 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2025-02-24 19:39:51 +0000

    Fix man.el shell injection vulnerability
    
    Bug: https://bugs.gentoo.org/950192
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 emacs/26.3/14_all_man.patch | 26 +++++++++++++++++++++++++
 emacs/27.2/15_all_man.patch | 47 +++++++++++++++++++++++++++++++++++++++++++++
 emacs/28.2/18_all_man.patch | 47 +++++++++++++++++++++++++++++++++++++++++++++
 emacs/29.4/06_all_man.patch | 47 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 167 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2025-02-25 18:58:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47f394193647eb7638f6740d4e5e47b9d6bff954

commit 47f394193647eb7638f6740d4e5e47b9d6bff954
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2025-02-25 18:52:41 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2025-02-25 18:58:15 +0000

    app-editors/emacs: Fix flymake and man vulnerabilities
    
    Bug: https://bugs.gentoo.org/945164
    Bug: https://bugs.gentoo.org/950192
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-editors/emacs/Manifest              |   4 +
 app-editors/emacs/emacs-26.3-r22.ebuild | 377 +++++++++++++++++++
 app-editors/emacs/emacs-27.2-r20.ebuild | 447 ++++++++++++++++++++++
 app-editors/emacs/emacs-28.2-r16.ebuild | 558 +++++++++++++++++++++++++++
 app-editors/emacs/emacs-29.4-r2.ebuild  | 648 ++++++++++++++++++++++++++++++++
 5 files changed, 2034 insertions(+)